﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.redshift
{
	// Token: 0x02000103 RID: 259
	public class TRedshiftAnalyze : TCustomSqlStatement
	{
		// Token: 0x1700017B RID: 379
		// (get) Token: 0x06000886 RID: 2182 RVA: 0x00302239 File Offset: 0x00300439
		// (set) Token: 0x06000887 RID: 2183 RVA: 0x00302241 File Offset: 0x00300441
		public virtual TObjectName TableName
		{
			get
			{
				return this.tableName;
			}
			set
			{
				this.tableName = value;
			}
		}

		// Token: 0x1700017C RID: 380
		// (get) Token: 0x06000888 RID: 2184 RVA: 0x0030224A File Offset: 0x0030044A
		// (set) Token: 0x06000889 RID: 2185 RVA: 0x00302252 File Offset: 0x00300452
		public virtual TObjectNameList ColumnList
		{
			get
			{
				return this.columnList;
			}
			set
			{
				this.columnList = value;
			}
		}

		// Token: 0x0600088A RID: 2186 RVA: 0x0030225B File Offset: 0x0030045B
		public TRedshiftAnalyze(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstredshiftAnalyze;
		}

		// Token: 0x0600088B RID: 2187 RVA: 0x00302270 File Offset: 0x00300470
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.tableName = (TObjectName)tdummy.node1;
			this.columnList = (TObjectNameList)tdummy.list1;
			return 0;
		}

		// Token: 0x0600088C RID: 2188 RVA: 0x003022BE File Offset: 0x003004BE
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0600088D RID: 2189 RVA: 0x003022CE File Offset: 0x003004CE
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400121B RID: 4635
		private TObjectName tableName;

		// Token: 0x0400121C RID: 4636
		private TObjectNameList columnList;
	}
}
